﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
</head>
<body>
    <script type="text/javascript">
        //Area of trapezoid = ((a+b)/2)*h
        var a = 5, b = 4, h = 3;
        var area = ((a + b) / 2) * h;
        document.writeln("The area of the trapezoid is " + area);
    </script>
</body>
</html>
